package com.dxx.cloud.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dxx.cloud.admin.module.entity.CustomerEntity;
import com.dxx.cloud.admin.module.module.CustomerAddModule;

/**
 * <p>
 * 客户表 服务类
 * </p>
 *
 * @author dh
 * @since 2025-06-06
 */
public interface ICustomerService extends IService<CustomerEntity> {
    CustomerEntity login(String mobile,String auth);

    Long addCustomerAfterSearch(CustomerAddModule customerAddModule);

    /**
     * 搜索客户
     * @param customerAddModule
     * @return
     * @throws Exception
     */
    CustomerEntity searchCustomer(CustomerAddModule customerAddModule);

    CustomerEntity addCustomer(CustomerAddModule customerAddModule);

    CustomerEntity loginByCode(String mobile, String code);
}
